
   <div class="modal-dialog" style="overflow: hidden; width: 720px; height: auto;">
    <div class="modal-content" style="height: 650px;">
      <div class="modal-header">
        <div class="title-album-photo nte-fancybox margin-20">
		    <a class="close" href="javascript:" data-dismiss="modal">
		    	<img src="<?php echo Yii::app()->theme->baseUrl ; ?>/images/icon-close.png" style="border:0px;"></a>
		    <div class="nte-fancybox-header">             
		        <h1>CHỌN ẢNH TỪ ALBUM CỦA BẠN</h1> 
		    </div>
		    <a href="javascript: void(0);" class="call-back-album" onclick="callBackAlbum();" id="back-avatar" style="display: none"><img src="<?php echo Yii::app()->theme->baseUrl ?>/images/icon-back-30.png"></a>
		    <img id="loading-view-avatar" style="display: none" src="<?php echo Yii::app()->theme->baseUrl ?>/images/loader.gif">
		</div>
      </div>
      <div class="modal-body">
		<div id="list-photo-avatar">
			<ul class="list-album-photo" id="album">
			 	<?php if ($thumb_album_default !== null):?>
				    <li>
				        <a class="thumb-album-small" href="javascript: void(0);" onclick="viewListPhotoAvatar(0,'D');"><img src="<?php echo Yii::app()->request->baseUrl.'/images/' ;?>Member/173_150/<?php echo $thumb_album_default->image;?>" alt="<?php echo $thumb_album_default->title;?>"/></a>
				        <a class="title-album-small" href="javascript: void(0);" onclick="viewListPhotoAvatar(0,'D');"><span>Ảnh tổng hợp</span></a>
				    </li>
			 	<?php endif;?>
			 	<?php if ($thumb_album_banner !== null):?>
				    <li >
				        <a class="thumb-album-small" href="javascript: void(0);" onclick="viewListPhotoAvatar(0,'C');"><img src="<?php echo Yii::app()->request->baseUrl.'/images/' ;?>Banner/173_150/<?php echo $thumb_album_banner->originimage;?>" alt="Album ảnh bìa" /></a>
				        <a class="title-album-small" href="javascript: void(0);" onclick="viewListPhotoAvatar(0,'C');"><span>Ảnh bìa</span></a>
				    </li>
			 	<?php endif;?>
			 	<?php if ($thumb_album_avatar !== null):?>
				    <li >
				        <a class="thumb-album-small" href="javascript: void(0);" onclick="viewListPhotoAvatar(0,'A');"><img src="<?php echo Yii::app()->request->baseUrl.'/images/' ;?>Avatar/173_150/<?php echo $thumb_album_avatar->originimage;?>" alt="Album ảnh đại diện"/></a>
				        <a class="title-album-small" href="javascript: void(0);" onclick="viewListPhotoAvatar(0,'A');"><span>Ảnh đại diện</span></a>
				    </li>
			 	<?php endif;?>
			 	<?php foreach($album as $data):?>
				    <li >
				        <a class="thumb-album-small" href="javascript: void(0);" onclick="viewListPhotoAvatar(<?php echo $data->id;?>,'M');"><img src="<?php echo Yii::app()->request->baseUrl.'/images/' ;?>Member/173_150/<?php echo $thumbAlbum[$data->id];?>" alt="<?php echo $data->title;?>" /></a>
				        <a class="title-album-small" href="javascript: void(0);" onclick="viewListPhotoAvatar(<?php echo $data->id;?>,'M');"><span><?php echo $data->title;?></span></a>
				    </li>
			 	<?php endforeach;?>
			</ul>
		</div>
		<div class="upload-computer">
			<a class="btn-upload-computer">
				
			</a>
		</div>
 
     </div><!-- /.modal-content -->
  </div><!-- /.modal-dialog -->
<script>
	$('#button-upload-avatar').appendTo('.btn-upload-computer');
</script>